/*
 * @Author: 汪军 624473119@qq.com
 * @Date: 2023-10-22 14:16:14
 * @LastEditors: 汪军 624473119@qq.com
 * @LastEditTime: 2023-10-22 16:32:49
 * @FilePath: \app-formwork\src\config\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

export const userApi = {
  //用户信息
  userinfo: (params) => request.post("/user/userinfo", params),
  //信息修改 
  userinfoedit: (params) => request.post("/user/useredit", params),
  //上传 
  upload: (params) => request.post("/common/upload", params),
  //勋章 
  medal: (params) => request.post("/user/medal", params),
  //我的评论 
  mycomment: (params) => request.get("/dev_comment/mycomment", params),
  //评论删除 
  commentdel: (params) => request.get("/dev_comment/commentdel", params),
  //我的收藏 
  mycollect: (params) => request.get("/dev_forum_collect/mycollect", params),
  //取消收藏&&收藏 
  cancelcollect: (params) => request.post("/dev_forum_collect/collect", params),

  //我的点赞 
  mygood: (params) => request.get("/dev_goods/mygood", params),
  //取消点赞&&点赞
  cancelgoods: (params) => request.post("/dev_goods/goods", params),
  
  //我的粉丝/关注 http://app.antiraedi.com/api/dev_follow_fans/list?type=1&num=10&page=1  1=关注 2=粉丝
  followfanslist: (params) => request.get("/dev_follow_fans/list", params),
  //关注/取消关注
  followFocus: (params) => request.post("/dev_follow_fans/follow", params),

  //发布的论团 http://app.antiraedi.com/api/dev_forum/list?keywords=&num=10&page=1   keyword 关键词搜索
  fellowShip: (params) => request.get("/dev_forum/list", params),
  //删除论团文章 
  deletefellowship: (params) => request.get("/dev_forum/forumdel", params),
  //修改密码 http://app.antiraedi.com/api/user/changepwd
  changepwd: (params) => request.post("/user/changepwd", params),



};